//
//  DoorViewController.m
//  WheatPlan
//
//  Created by giantumbrella on 15/5/21.
//  Copyright (c) 2015年 IOSTeam. All rights reserved.
//

#import "DoorViewController.h"
#import "CommonMacro.h"
@interface DoorViewController ()

@end

@implementation DoorViewController
MM_SP
- (void)viewDidLoad {
    [super viewDidLoad];
    //设置导航栏头文字
    self.navigationItem.title = @"上门早教";
    //设置导航栏背景颜色
    [self.navigationController.navigationBar setBarTintColor:UIColorWithRGBA(0,215,226,1)];
    //设置导航栏字体颜色
    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,nil]];
    
    [self initSubViews];
  
    

    // Do any additional setup after loading the view from its nib.
}

-(void)initSubViews{
    
    
    _understandBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    _understandBtn.frame = [self orange:20 orangey:80 sizewith:280 sizeheigt:100];
    [_understandBtn setImage:[UIImage imageNamed:@"_0005_了解上门早教"] forState:UIControlStateNormal];
    _understandBtn.tag =1;
    [_understandBtn addTarget:self action:@selector(got:) forControlEvents:UIControlEventTouchUpInside];
    
    _teacherBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    _teacherBtn.frame = [self orange:20 orangey:200 sizewith:280 sizeheigt:100];
    [_teacherBtn setImage:[UIImage imageNamed:@"_0004_早教老师介绍"] forState:UIControlStateNormal];
    _teacherBtn.tag =2;
    [_teacherBtn addTarget:self action:@selector(gotOne) forControlEvents:UIControlEventTouchUpInside];
    
    
    _makeBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    _makeBtn.frame = [self orange:20 orangey:320 sizewith:130 sizeheigt:80];
    [_makeBtn setImage:[UIImage imageNamed:@"_0002_预约早教老师"] forState:UIControlStateNormal];
    _makeBtn.tag =3;
    [_makeBtn addTarget:self action:@selector(gotTow) forControlEvents:UIControlEventTouchUpInside];
    
    
    _makeLabel = [[UILabel alloc]init];
    _makeLabel.frame = [self orange:20 orangey:400 sizewith:130 sizeheigt:20];
    _makeLabel.text = @"早教指导师预约";
    _makeLabel.font = [UIFont systemFontOfSize:14];
    _makeLabel.textAlignment = UITextAlignmentCenter;

    
    
    
    _courseBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    _courseBtn.frame = [self orange:170 orangey:320 sizewith:130 sizeheigt:80];
    [_courseBtn setImage:[UIImage imageNamed:@"_0000_预约课程"] forState:UIControlStateNormal];
    _courseBtn.tag =4;
    [_courseBtn addTarget:self action:@selector(gotSre) forControlEvents:UIControlEventTouchUpInside];
    
    _courseLabel = [[UILabel alloc]init];
    _courseLabel.frame = [self orange:170 orangey:400 sizewith:130 sizeheigt:20];
    _courseLabel.text = @"预约课程";
    _courseLabel.font = [UIFont systemFontOfSize:14];
    _courseLabel.textAlignment = UITextAlignmentCenter;
    
    
    
    
    
    [self.view addSubview:_understandBtn];
    [self.view addSubview:_teacherBtn];
    [self.view addSubview:_makeBtn];
    [self.view addSubview:_courseBtn];
    [self.view addSubview:_makeLabel];
    [self.view addSubview:_courseLabel];

    
}


#pragma mark---  了解上门早教的点击方法

-(void)got:(UIButton *)send{
    
    

    
}
#pragma mark---  早教老师介绍
-(void)gotOne{
    
    

    
    
    
}
#pragma mark---  早教指导师预约
-(void)gotTow{
    
    

    
    
    
}
#pragma mark---  预约课程
-(void)gotSre{

    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
